/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */

package cn.webrx;

import java.util.HashSet;
import java.util.Set;

/**
 * <p>Project: jse2303 - Set3
 * <p>Powered by webrx On 2023-07-19 16:02:15
 * <p>描述：<p>
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Set3 {
    public static void main(String[] args) {
        Set<Book> sets = new HashSet<>();
        sets.add(new Book());
        sets.add(new Book());
        sets.add(new Book());
        sets.add(new Book());


        //sets.add(new Book(11, "《java入门》", 16));
        //sets.add(new Book(21, "《java入门》", 22));
        //sets.add(new Book(31, "《java入门》", 33));
        //sets.add(new Book(42, "《数据库技术》", 55));
        //sets.add(new Book(52, "《数据库技术》", 12));
        //sets.add(new Book(62, "《数据库技术》", 25));

        System.out.println(sets.size());
        System.out.println(sets);

        System.out.println(new Book().hashCode());
        System.out.println(new Book().hashCode());
        System.out.println(new Book().hashCode());
        System.out.println(new Book().hashCode());
    }
}
